package q.yazg;

import static org.lwjgl.opengl.GL11.*;

/**
 *
 * @author khalisq
 */
public class SimpleTerrain implements Terrain{

    @Override
    public float getHeight(float minX, float maxX, float y) {
        return maxX>0f?-4f:-3f;
    }
    
    public void render(float left, float right){        
        glBegin(GL_QUADS);
            glVertex2f(-800f, -3f);
            glVertex2f(-800f, -20f);
            glVertex2f(0f, -3f);
            glVertex2f(0f, -20f);
        glEnd();
    }
    
}
